package com.aaa.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @program: qy163-parent
 * @description:
 * @author: 闫克起2
 * @create: 2023-05-12 15:33
 **/
@Data
@TableName(value = "shop_product")
public class Product {
    @TableId(value="pid",type = IdType.AUTO )
    private Integer pid;
    private String pname;
    //小数类型必须使用BigDecimal
    private BigDecimal pprice;
    private Integer stock;
}
